//
// Created by iguilty on 2022-01-13.
//

#ifndef DESIGN_PATTERN_CPP_FLYWEIGHTFACTORY_H
#define DESIGN_PATTERN_CPP_FLYWEIGHTFACTORY_H

#include "Flyweight.h"
#include <string>
#include <vector>
using namespace std;

class FlyweightFactory {
public:
    FlyweightFactory();
    ~FlyweightFactory();
    Flyweight* GetFlyweight(const string& key);

private:
    vector<Flyweight*>_fly;
};


#endif //DESIGN_PATTERN_CPP_FLYWEIGHTFACTORY_H
